﻿using System;
using System.Web;
using ArtsShop.DataLayer.DataAccess;
using System.Data;


namespace ArtsShop.BusinessLogic
{
    public class Product
    {

        /// <summary>
        /// Gets a list of products under a given category
        /// </summary>
        /// <param name="orderRef">the category id</param>
        /// <returns></returns>
        public static DataSet GetProductsByCat(int categoryId)
        {
            ProductDAO od = new ProductDAO();
            return od.getProductsByCategory(categoryId);
        }

        public static DataSet GetProductById(int productId)
        {
            ProductDAO od = new ProductDAO();
            return od.getProductById(productId);
        }
    }
}
